package com.ruoyi.model.contest.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author xxxz
 * 后台竞赛信息管理展示
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContestAdminVo {
    private String id;

    @Excel(name = "竞赛标题")
    private String title;

    @Excel(name = "竞赛类型")
    private String contestCategory;

    @Excel(name = "竞赛说明")
    private String contestInfo;

    @Excel(name = "活动地址")
    private String local;

    /**
     * 竞赛开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "竞赛开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 竞赛结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "竞赛结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 允许参加的竞赛人数
     */
    @Excel(name = "允许参加的竞赛人数")
    private Long personNum;
}
